-- crime_crackers
-- created by zhuangsl
-- 罪恶克星状态

return {
    fetchProps = function(who, status, condition)
        local props  = {};
        local propId = PropM.getPropId("round_attrib");
        local endRound = condition["end_round"];

        -- 每回合攻击百分比提升
        table.insert(props, { propId, "attack", 200, endRound, });

        -- 忽视物理抗性
        propId = PropM.getPropId("ignore_resist");
        table.insert(props, { propId, "attack", 200, endRound, });

        -- 变身
        propId = PropM.getPropId("shape_change");
        table.insert(props, {propId, 9, 1, endRound});

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        local value = 20;
        desc = string.gsub(desc, "{value}", value);
        desc = string.gsub(desc, "{value2}", value);

        return desc;
    end,
};
